﻿using DataConvertLib;
using System;

namespace YWM.Communication
{
    [AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
    public class ModelMultiPropertyAttribute : ModelPropertyAttribute
    {
        public ModelMultiPropertyAttribute(DataType dataType, int startIndex)
            : base(startIndex)
        {
            DataType = dataType;
        }

        /// <summary>
        /// 数据类型
        /// </summary>
        public DataType DataType { get; set; }

        /// <summary>
        /// 偏移或长度
        /// </summary>
        public int OffsetOrLength { get; set; }
    }
}
